<?php
declare(strict_types=1);
require_once __DIR__ . '/vendor/autoload.php';

use    League\HTMLToMarkdown\HtmlConverter  ;


$converter =  new HtmlConverter();

$html = '<h1>Hello World</h1>
<p>This is a paragraph.</p>
<ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    </ul>
    <p>This is another paragraph.</p>
<strong>This is a bold text.</strong>

';


$html = '
<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="UTF-8">

<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>Commands | zigmod</title>
<meta name="generator" content="Jekyll v3.10.0" />
<meta property="og:title" content="Commands" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="📦 A package manager for the Zig programming language." />
<meta property="og:description" content="📦 A package manager for the Zig programming language." />
<link rel="canonical" href="https://nektro.github.io/zigmod/commands/" />
<meta property="og:url" content="https://nektro.github.io/zigmod/commands/" />
<meta property="og:site_name" content="zigmod" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Commands" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","description":"📦 A package manager for the Zig programming language.","headline":"Commands","url":"https://nektro.github.io/zigmod/commands/"}</script>
<!-- End Jekyll SEO tag -->

    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap" as="style" type="text/css" crossorigin>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="theme-color" content="#157878">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <link rel="stylesheet" href="/zigmod/assets/css/style.css?v=77914d78c8bf6f37ce868d81be1d4d73d91fcfe1">
    <!-- start custom head snippets, customize with your own _includes/head-custom.html file -->

<!-- Setup Google Analytics -->



<!-- You can set your favicon here -->
<!-- link rel="shortcut icon" type="image/x-icon" href="/zigmod/favicon.ico" -->

<!-- end custom head snippets -->

  </head>
  <body>
    <a id="skip-to-content" href="#content">Skip to the content.</a>

    <header class="page-header" role="banner">
      <h1 class="project-name">Commands</h1>
      <h2 class="project-tagline">📦 A package manager for the Zig programming language.</h2>
      
        <a href="https://github.com/nektro/zigmod" class="btn">View on GitHub</a>
      
      
    </header>

    <main id="content" class="main-content" role="main">
      <h2 id="commands">Commands</h2>
<p>Listed below is all of the commands available in Zigmod. All are meant to be run in the build root of your project.</p>

<p>Running <code class="language-plaintext highlighter-rouge">zigmod</code> with no commands will print this list.</p>

<ul>
  <li><a href="/zigmod/commands/version.html"><code class="language-plaintext highlighter-rouge">version</code></a></li>
  <li><a href="/zigmod/commands/init.html"><code class="language-plaintext highlighter-rouge">init</code></a></li>
  <li><a href="/zigmod/commands/fetch.html"><code class="language-plaintext highlighter-rouge">fetch</code></a></li>
  <li><a href="/zigmod/commands/ci.html"><code class="language-plaintext highlighter-rouge">ci</code></a></li>
  <li><a href="/zigmod/commands/license_.html"><code class="language-plaintext highlighter-rouge">license</code></a></li>
  <li>
    <p><a href="/zigmod/commands/sum.html"><code class="language-plaintext highlighter-rouge">sum</code></a></p>
  </li>
  <li><a href="/zigmod/commands/zpm.html"><code class="language-plaintext highlighter-rouge">zpm</code></a></li>
  <li><a href="/zigmod/commands/zpm_add.html"><code class="language-plaintext highlighter-rouge">zpm add</code></a></li>
  <li>
    <p><a href="/zigmod/commands/zpm_showjson.html"><code class="language-plaintext highlighter-rouge">zpm showjson</code></a></p>
  </li>
  <li><a href="/zigmod/commands/aq.html"><code class="language-plaintext highlighter-rouge">aq</code></a></li>
  <li><a href="/zigmod/commands/aq_add.html"><code class="language-plaintext highlighter-rouge">aq add</code></a></li>
  <li><a href="/zigmod/commands/aq_showjson.html"><code class="language-plaintext highlighter-rouge">aq showjson</code></a></li>
  <li><a href="/zigmod/commands/aq_install.html"><code class="language-plaintext highlighter-rouge">aq install</code></a></li>
  <li><a href="/zigmod/commands/aq_update.html"><code class="language-plaintext highlighter-rouge">aq update</code></a></li>
</ul>


      <footer class="site-footer">
        
          <span class="site-footer-owner"><a href="https://github.com/nektro/zigmod">zigmod</a> is maintained by <a href="https://github.com/nektro">nektro</a>.</span>
        
        <span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a>.</span>
      </footer>
    </main>
  </body>
</html>

';
$markdown = $converter->convert($html);


print $markdown;    // Output: # Hello World